package com.swxy.service;

import com.swxy.dao.BookDao;
import com.swxy.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImpl implements BookService{

   @Autowired
   BookDao bookDao;

   @Override
   public List<Book> getBooksByTypeId(long typeId) {
      return bookDao.getBooksByTypeId(typeId);
   }

   @Override
   public List<Book> querySelectAll() {
      return bookDao.querySelectAll();
   }
}
